var newsTitleDiv = document.getElementsByClassName('news-title')[0],
  newsBlockDiv = document.getElementsByClassName('news-blocks')[0]

newsTitleDiv.onmouseover = function (e) {
  var children = Array.from(this.children),
    index = children.indexOf(e.target)
  if (e.target.tagName !== 'LI') return
  if (index >= 5) return
  tab(index, newsTitleDiv, newsBlockDiv, 'active', 'marginLeft')
}
